package com.well.menjin.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity(name = "door_room")
public class Room implements Serializable {

	private static final long serialVersionUID = -6218240811876968375L;

	@Id
	@GenericGenerator(name = "id", strategy = "uuid2")
	@GeneratedValue(generator = "id")
	private String id;

	// 房间编号
	private String room_no;

	// 房间名称
	private String room_name;

	// 区域编号
	private String zone_no;

	// 房间电话
	private String room_tel;

	// 串口号
	private String comm_port;

	// 在用或未用
	private String room_state;

	// 控制器编号
	private String controller_id;

	// 门号
	private Integer door_no;

	// 进读卡器
	private Integer in_reader;

	// 出读卡器
	private Integer out_reader;

	// 房间地址
	private String room_address;

	// 读卡器序列号
	private String reader_serial;

	// 开关状态
	private String switch_state;

	// 变化时间
	@Temporal(TemporalType.TIMESTAMP)
	private Date change_time;

	// 最新时间
	@Temporal(TemporalType.TIMESTAMP)
	private Date current_time;

	// 开门区间
	private String open_range;

	// 关门区间
	private String close_range;

	// 常开控制
	private String on_control;

	// 常闭控制
	private String off_control;

	// 开门方向
	private String open_direction;

	// 房门组成
	private String room_form;

	// 房门位置
	private String room_place;

	// 门锁类型
	private String lock_type;

	// 房门材质
	private String room_material;

	// 紧急按钮
	private String urgent_button;

	// 锁力
	private String lock_power;

	// 层高
	private String floor_height;

	// 差时
	@Temporal(TemporalType.TIMESTAMP)
	private Date differential_time;

	// 备注
	private String remark;

	// 创建人
	private String create_by;

	// 修改人
	private String update_by;

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getId() {
		return id;
	}

	public String getRoom_no() {
		return room_no;
	}

	public String getRoom_name() {
		return room_name;
	}

	public String getZone_no() {
		return zone_no;
	}

	public String getRoom_tel() {
		return room_tel;
	}

	public String getComm_port() {
		return comm_port;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setRoom_no(String room_no) {
		this.room_no = room_no;
	}

	public void setRoom_name(String room_name) {
		this.room_name = room_name;
	}

	public void setZone_no(String zone_no) {
		this.zone_no = zone_no;
	}

	public void setRoom_tel(String room_tel) {
		this.room_tel = room_tel;
	}

	public void setComm_port(String comm_port) {
		this.comm_port = comm_port;
	}

	public String getRoom_state() {
		return room_state;
	}

	public String getController_id() {
		return controller_id;
	}

	public Integer getDoor_no() {
		return door_no;
	}

	public Integer getIn_reader() {
		return in_reader;
	}

	public Integer getOut_reader() {
		return out_reader;
	}

	public String getRoom_address() {
		return room_address;
	}

	public void setRoom_state(String room_state) {
		this.room_state = room_state;
	}

	public void setController_id(String controller_id) {
		this.controller_id = controller_id;
	}

	public void setDoor_no(Integer door_no) {
		this.door_no = door_no;
	}

	public void setIn_reader(Integer in_reader) {
		this.in_reader = in_reader;
	}

	public void setOut_reader(Integer out_reader) {
		this.out_reader = out_reader;
	}

	public void setRoom_address(String room_address) {
		this.room_address = room_address;
	}

	public String getReader_serial() {
		return reader_serial;
	}

	public String getSwitch_state() {
		return switch_state;
	}

	public Date getChange_time() {
		return change_time;
	}

	public Date getCurrent_time() {
		return current_time;
	}

	public String getOpen_range() {
		return open_range;
	}

	public String getClose_range() {
		return close_range;
	}

	public String getOn_control() {
		return on_control;
	}

	public String getOff_control() {
		return off_control;
	}

	public String getOpen_direction() {
		return open_direction;
	}

	public String getRoom_form() {
		return room_form;
	}

	public String getRoom_place() {
		return room_place;
	}

	public String getLock_type() {
		return lock_type;
	}

	public String getRoom_material() {
		return room_material;
	}

	public String getUrgent_button() {
		return urgent_button;
	}

	public String getLock_power() {
		return lock_power;
	}

	public String getFloor_height() {
		return floor_height;
	}

	public void setReader_serial(String reader_serial) {
		this.reader_serial = reader_serial;
	}

	public void setSwitch_state(String switch_state) {
		this.switch_state = switch_state;
	}

	public void setChange_time(Date change_time) {
		this.change_time = change_time;
	}

	public void setCurrent_time(Date current_time) {
		this.current_time = current_time;
	}

	public void setOpen_range(String open_range) {
		this.open_range = open_range;
	}

	public void setClose_range(String close_range) {
		this.close_range = close_range;
	}

	public void setOn_control(String on_control) {
		this.on_control = on_control;
	}

	public void setOff_control(String off_control) {
		this.off_control = off_control;
	}

	public void setOpen_direction(String open_direction) {
		this.open_direction = open_direction;
	}

	public void setRoom_form(String room_form) {
		this.room_form = room_form;
	}

	public void setRoom_place(String room_place) {
		this.room_place = room_place;
	}

	public void setLock_type(String lock_type) {
		this.lock_type = lock_type;
	}

	public void setRoom_material(String room_material) {
		this.room_material = room_material;
	}

	public void setUrgent_button(String urgent_button) {
		this.urgent_button = urgent_button;
	}

	public void setLock_power(String lock_power) {
		this.lock_power = lock_power;
	}

	public void setFloor_height(String floor_height) {
		this.floor_height = floor_height;
	}

	public Date getDifferential_time() {
		return differential_time;
	}

	public String getRemark() {
		return remark;
	}

	public String getCreate_by() {
		return create_by;
	}

	public String getUpdate_by() {
		return update_by;
	}

	public void setDifferential_time(Date differential_time) {
		this.differential_time = differential_time;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setCreate_by(String create_by) {
		this.create_by = create_by;
	}

	public void setUpdate_by(String update_by) {
		this.update_by = update_by;
	}

}
